<template>
  <div>
    <div>
      <van-nav-bar title="景区列表" left-text="返回" left-arrow @click-left="back()">

      </van-nav-bar>
    </div>
    <div>
    </div>
    <div>
      <div class="dv1" v-for="a in attraction">
        <van-row>

          <img class="img1" :src="a.imgurl">
          <div class="hh">{{a.info}}</div>
        </van-row>
      </div>
    </div>
  </div>
</template>

<script>
export default {

  name: "TestlistView",
  data(){
    return{
      attraction:[],
    }
  },

  mounted() {
    this.created()
  },
  methods:{
    created() {
      this.attraction = this.$store.state.attraction
    },
    back(){
      history.back()
    },



  }
}
</script>

<style scoped>
.dv1{
  width: 90%;
  margin-left: 5%;
  margin-bottom: 10px;
}

.img1{
  width: 100%;
  height: 100%;
  margin-left: 0%;
  margin-right: 0%;
}
.hh{
  width: 90%;
  margin-left: 5%;
  margin-bottom: 10px;
}
</style>